//
//  SKErJiCell.m
//  Hand-held_kitchen
//
//  Created by 张张烨 on 16/1/17.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SKErJiCell.h"

@implementation SKErJiCell
- (void)dealloc
{
    [_touxiang release];
    [_shijian release];
    [_neirong release];
    [_nicheng release];
    [_xiaotupian release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        /**<  头像 */
        self.touxiang = [[UIImageView alloc]init];
        
        _touxiang.layer.cornerRadius = (60 / 2) *KUAN;
        _touxiang.clipsToBounds = YES;
        
        [self.contentView addSubview:_touxiang];
        [_touxiang release];
        /**<  昵称 */
        self.nicheng = [[UILabel alloc]init];
        _nicheng.font = [UIFont systemFontOfSize:14* KUAN];
        [self.contentView addSubview:_nicheng];
        [_nicheng release];
        /**<  内荣 */
        self.neirong = [[UILabel alloc]init];
        _neirong.font = [UIFont systemFontOfSize:13* KUAN];
        _neirong.numberOfLines = 2;
        [self.contentView addSubview:_neirong];
        [_neirong release];
        /**<  时间 */
        self.shijian = [[UILabel alloc]init];
        _shijian.font = [UIFont systemFontOfSize:12* KUAN];
        [self.contentView addSubview:_shijian];
        [_shijian release];
        
        /**<  小图片 */
        self.xiaotupian = [[UIImageView alloc]init];
        [self.contentView addSubview:_xiaotupian];
        [_xiaotupian release];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    /**<  各种大小 */
    _touxiang.frame = CGRectMake(10 * KUAN, 25 * GAO, 60 *KUAN, 60 * GAO);
    _nicheng.frame = CGRectMake(80 * KUAN, 5 * GAO, 300 * KUAN, 40 * GAO);
    _neirong.frame = CGRectMake(100 * KUAN, 30 * GAO, 200 * KUAN, 40 * GAO);
    _shijian.frame = CGRectMake(80  * KUAN, 60 * GAO, 300 *KUAN, 40 * GAO);
    
    _xiaotupian.frame = CGRectMake(330 * KUAN, 35 *GAO, 30 * KUAN, 30 * GAO);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
